<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>窗口自动滚动</title>
</head>
<body>
<img src="1.bmp">
<script type="text/javascript">
var position = 0;
function scroller(){
    position++;
    scrollTo(0,position);
    clearTimeout(timer);
    var timer = setTimeout("scroller()",10);
}
scroller();
</script>
</body></html>
